package com.symaster.common.config;

import java.util.HashMap;
import java.util.Map;

/**
 * 全局属性
 *
 * @author yinmiao
 * @date 2021-08-10 09:00
 */
public class ApplicationProperty {

    private static final Map<String, Object> APPLICATION_PROPERTY_MAP = new HashMap<>();

    public static Object get(String key) {
        return APPLICATION_PROPERTY_MAP.get(key);
    }

    public static void put(String key, Object value) {
        APPLICATION_PROPERTY_MAP.put(key, value);
    }

    public static int size() {
        return APPLICATION_PROPERTY_MAP.size();
    }
}
